package com.dhnsoft.logging.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dhn
 * @version 1.0
 * @date 2023-08-21 20:21
 * @Desc
 */
@Slf4j
@RestController
public class HelloController {

    @GetMapping("/h")
    public String hello(){
        log.trace("trace日志.......");
        log.debug("debug日志.......");
        log.info("info日志.......");
        log.warn("warn日志.......");
        log.error("error日志.......");
        return "hello";
    }
}
